//
//  NSString+someMethods.m
//  StarLight
//
//  Created by 吴涛 on 16/6/2.
//  Copyright © 2016年 Duke.Wu. All rights reserved.
//

#import "NSString+someMethods.h"

@implementation NSString (someMethods)


+ (NSString *)stringDeleteString:(NSString *)str
{
  NSMutableString *str1 = [NSMutableString stringWithString:str];
  for (int i = 0; i < str1.length; i++) {
    unichar c = [str1 characterAtIndex:i];
    NSRange range = NSMakeRange(i, 1);
    if (c == '-') { //此处可以是任何字符
      [str1 deleteCharactersInRange:range];
      --i;
    }
  }
  NSString *newstr = [NSString stringWithString:str1];
  return newstr;
}

@end
